package com.framework;

import java.util.Base64;

class CryptoUtils {
    public static String encrypt(String data) {
        // 实际应使用AES或RSA加密
        return Base64.getEncoder().encodeToString(data.getBytes());
    }

    public static String decrypt(String encryptedData) {
        byte[] decoded = Base64.getDecoder().decode(encryptedData);
        return new String(decoded);
    }
}
